package com.dingwen.treasure.task.quartz.controller;

import com.dingwen.treasure.base.controller.BaseViewController;
import com.dingwen.treasure.base.pojo.vo.Result;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * 测试控制器
 *
 * @author dingwen
 * @date 2022/03/31
 */
@Slf4j
@RestController
@RequestMapping("/feign")
public class FeignController implements BaseViewController {
    /**
     * 测试 feign 调用
     *
     * @param id id
     * @return {@link Result}
     */
    @GetMapping("")
    public Result<Long> feign(@RequestParam Long id) {
        return success(id);
    }
}
